package com.example.demoexample.model;

import java.io.Serializable;

public class BaseDto implements Serializable {
    private int ret;// 图片上传不成功  355
    private String msg;
    private Integer timestamp;
    private Object obj;

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Integer timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * 设置默认OK的返回结果：ret=0 msg="ok"
     * setDefaultOkMsg
     *
     * @param
     * @return void
     * @Exception 异常对象
     */
    public void setDefaultOkMsg() {
        ret = 0;
        msg = "ok";
    }

    @Override
    public String toString() {
        return "BaseDto{" +
                "ret=" + ret +
                ", msg='" + msg + '\'' +
                ", timestamp=" + timestamp +
                ", obj=" + obj +
                '}';
    }
}
